export const tableOption = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  labelWidth: 110,
  editBtn: false,
  delBtn: false,
  searchEnter: true,
  column: [
    {
      type: "select",
      label: "人员名称",
      prop: "personName",
      span: 12,
      dicUrl:
        "/admin-api/o3-workorder/personcredentialmanage/getPersonCredentialList",
      props: {
        label: "personName",
        value: "personName",
      },
      dicMethod: "get",
      display: true,
      hide: false,
      rules: [
        {
          required: true,
          trigger: "blur",
          message: "人员名称不能为空",
        },
      ],
      formslot: true,
    },
    {
      type: "input",
      label: "员工号",
      prop: "jobNo",
      span: 12,
      disabled: true,
      display: true,
      hide: false,
    },
    {
      type: "input",
      label: "资质等级",
      prop: "credentialGrade",
      span: 12,
      disabled: true,
      display: true,
      hide: false,
    },
    {
      type: "input",
      label: "培训技能",
      prop: "skill",
      span: 12,
      dicMethod: "get",
      disabled: true,
      display: true,
      hide: false,
    },
    {
      type: "input",
      label: "培训师",
      prop: "trainer",
      span: 12,
      rules: [
        {
          required: true,
          trigger: "blur",
          message: "培训师不能为空",
        },
      ],
    },
    {
      type: "datetime",
      label: "培训开始时间",
      prop: "trainStartTime",
      span: 12,
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      rules: [
        {
          required: true,
          trigger: "blur",
          message: "培训开始时间不能为空",
        },
      ],
    },
    {
      type: "datetime",
      label: "培训结束时间",
      prop: "trainEndTime",
      span: 12,
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      rules: [
        {
          required: true,
          trigger: "blur",
          message: "培训结束时间不能为空",
        },
      ],
    },
  ],
};

export const trainInfoOption = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  labelWidth: 110,
  editBtn: false,
  delBtn: false,
  addBtn: false,
  menu: false,
  column: [
    {
      type: "select",
      label: "人员名称",
      prop: "personName",
      span: 12,
      dicUrl:
        "/admin-api/o3-workorder/personcredentialmanage/getPersonCredentialList",
      props: {
        label: "personName",
        value: "personName",
      },
      dicMethod: "get",
      display: true,
      hide: false,
      rules: [
        {
          required: true,
          trigger: "blur",
          message: "人员名称不能为空",
        },
      ],
      formslot: true,
    },
    {
      type: "input",
      label: "员工号",
      prop: "jobNo",
      span: 12,
      disabled: true,
      display: true,
      hide: false,
    },
    {
      type: "input",
      label: "资质等级",
      prop: "credentialGrade",
      span: 12,
      disabled: true,
      display: true,
      hide: false,
    },
    {
      type: "input",
      label: "培训技能",
      prop: "skill",
      span: 12,
      dicMethod: "get",
      disabled: true,
      display: true,
      hide: false,
    },
    {
      type: "input",
      label: "培训师",
      prop: "trainer",
      span: 12,
      rules: [
        {
          required: true,
          trigger: "blur",
          message: "培训师不能为空",
        },
      ],
    },
    {
      type: "datetime",
      label: "培训开始时间",
      prop: "trainStartTime",
      span: 12,
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      rules: [
        {
          required: true,
          trigger: "blur",
          message: "培训开始时间不能为空",
        },
      ],
    },
    {
      type: "datetime",
      label: "培训结束时间",
      prop: "trainEndTime",
      span: 12,
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      rules: [
        {
          required: true,
          trigger: "blur",
          message: "培训结束时间不能为空",
        },
      ],
    },
  ],
};
